package com.education.controller.showStudyOnline;

import com.education.pojo.StudyOnline;
import com.education.service.impl.SelectTestPeperImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by Administrator on 2018/4/25.
 * 获取所有的在线学习表的信息
 */
@Controller
@CrossOrigin(origins = "*",maxAge = 3600)
public class SelectAllStudyOnline {
    @Autowired
    private SelectTestPeperImpl selectTestPeper;
    @RequestMapping("/selectAllInformaton")
    @ResponseBody
    public List<StudyOnline> selectAllInformaton(){
        List<StudyOnline> list = selectTestPeper.getAllStudyOnline();
        return list;
    }
}
